class Album < ActiveRecord::Base
  acts_as_taggable
  acts_as_list
  validates_presence_of :title
  validates_presence_of :body
  
  has_many :photos, :dependent => :destroy 
  
  named_url :key => 'title', :url_column => 'url_slug'
end
